{extend name="default/shops/base" /}
{block name="title"}销售额统计 - 卖家中心{__block__}{/block}
{block name="content"}
<style>
.wst-list tbody tr td {height: 35px;line-height: 35px;}
</style>
<div class="wst-body"> 
<div class="wst-shop-head"><span>销售额统计</span></div>
<div class='wst-shop-tbar'>
    日期：<input type='text' class="laydate-icon j-ipt" id='startDate' onclick="laydate()" value='{$startDate}'/>至
    <input type='text' class="laydate-icon j-ipt" id='endDate' onclick="laydate()" value='{$endDate}'/>
    支付方式：<select id='payType' class='j-ipt'>
       <option value='-1'>全部</option>
       <option value='0'>货到付款</option>
       <option value='1'>在线支付</option>
    </select>
    <a class="s-btn" onclick="loadStat()">查询</a>
</div>
<div class='wst-shop-content'>
    <div id='main' style='height:300px;width:99%'></div>
    <table id='mainTable' class='wst-list hide' style="font-size:13px;">
        <thead>
            <tr>
              <th width='20'>&nbsp;&nbsp;</th>
              <th width='100'>日期</th>
              <th width='100'>订单数</th>
              <th width='130'>销售额</th>
            </tr>
        </thead>
        <tbody id='list-box'></tbody>
        <script id="stat-tblist" type="text/html">
        {{# for(var i = 0; i < d.length; i++){ }}
            <tr>
              <td>{{(i+1)}}</td>
              </td>
              <td>{{ d[i].day }}</td>
              <td>{{ d[i].num }}</td>
              <td>￥{{ d[i].val }}</td>
            </tr>
        {{# } }}
        </script>
    </table>
</div>
{/block}  
{block name="js"}
<script src="__STATIC__/plugins/echarts/echarts.min.js?v={$v}" type="text/javascript"></script>
<script src="__STATIC__/plugins/layer/laydate.js"></script>
<script type='text/javascript' src='__STYLE__/shops/reports/stat_sales.js?v={$v}'></script>
{/block}